Search
Font Constructor
See Also
 





Initializes a new instance of the Font class with the specified attributes.

Namespace: MindFusion.Drawing
Package: Font.js

 Syntax

JavaScript  Copy Code

function Font (name, [size, [bold, [italic, [underline]]]])

 Parameters

name

String. The font name.

size
Optional.

Number. The font size.

bold
Optional.

Boolean | FontStyle. true if this font is bold, or false otherwise.

italic
Optional.

Boolean. true if this font is italic, or false otherwise.

underline
Optional.

Boolean. true if this font is underlined, or false otherwise.

 See Also